#include <iostream>
#include <vector>
#include <hash_map>
#include <map>
#include <algorithm>
#include "document_reader.h"
#include "tokenizer.h"
#include "hse_types.h"
#include "hse_common.h"
#include "index_builder.h"
#include "search.h"
#include "document_meta_datas.h"
#include "search_engine.h"
#include "win_server.h"

int main() {
	using namespace std;
	using namespace hse;

	Tokenizer::Init();
	
	//hse::IndexBuilder builder("D:\\index\\");
	//builder.AddDocumentsInDir("D:\\docs\\");
	//builder.Dump();

	hse::WinServer server;
	server.Start(1357);

	hse::DocumentMetaDatas::Destroy();
	return 0;
}